xen.git
18 years agokexec: Avoid unaligned writes when producing crash info.
kfraser@localhost.localdomain [Tue, 24 Apr 2007 08:48:08 +0000 (09:48 +0100)]
kexec: Avoid unaligned writes when producing crash info.

The alignment of info is 32bits in line with the elf specification.
This means that on 64 bit architectures accessing it directly may
result unaligned access and a panic. I have been experiencing
this on IA64.

It seems that a simple approach of having an crash_xen_info_t on
the stack and simply memcopying it into info at the end alleviates
the problem.

Signed-off-by: Simon Horman <horms@verge.net.au>
18 years agoxend: Incluide processing of 'monitor' config option in qemu-dm
kfraser@localhost.localdomain [Tue, 24 Apr 2007 08:44:51 +0000 (09:44 +0100)]
xend: Incluide processing of 'monitor' config option in qemu-dm
cmdline processing.
Signed-off-by: Yongkang You <yongkang.you@intel.com>
18 years ago[TAPDISK] Move tapdisk control files from /dev/xen to /var/run/tap
Jake Wires [Tue, 24 Apr 2007 00:15:38 +0000 (17:15 -0700)]
[TAPDISK] Move tapdisk control files from /dev/xen to /var/run/tap
Signed-off-by: Jake Wires <jwires@xensource.com>
18 years ago[TAPDISK] Use incremental cookies and fix blktapctrl::test_path parameter typo.
Jake Wires [Mon, 23 Apr 2007 22:37:53 +0000 (15:37 -0700)]
[TAPDISK] Use incremental cookies and fix blktapctrl::test_path parameter typo.
Signed-off-by: Jake Wires <jwires@xensource.com>
18 years agonetback: Copy skbuffs that are presented to the start_xmit() function
kfraser@localhost.localdomain [Mon, 23 Apr 2007 15:37:03 +0000 (16:37 +0100)]
netback: Copy skbuffs that are presented to the start_xmit() function
with a multi-page head buffer. The new skbuff will not have a
multi-page head buffer, which is a necessary restriction until this is
supported by the internals of the netback driver.
Signed-off-by: Steven Smith <ssmith@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAPI version to 0.9.1.
ewan@localhost.localdomain [Sat, 21 Apr 2007 21:12:09 +0000 (14:12 -0700)]
API version to 0.9.1.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoIgnore the libxenapi tarball temp directory.
ewan@localhost.localdomain [Sat, 21 Apr 2007 19:43:25 +0000 (12:43 -0700)]
Ignore the libxenapi tarball temp directory.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded Makefile.dist, which can make standalone tarballs.
ewan@localhost.localdomain [Sat, 21 Apr 2007 19:42:58 +0000 (12:42 -0700)]
Added Makefile.dist, which can make standalone tarballs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoMove all internal header files to a separate directory, so that it's clear what
ewan@localhost.localdomain [Sat, 21 Apr 2007 19:21:06 +0000 (12:21 -0700)]
Move all internal header files to a separate directory, so that it's clear what
forms the public API.  Tidy up a couple of macros in xen_internal.h.  Remove
test_hvm_bindings, which no longer builds, and which has had its functionality
subsumed into test_bindings.  Bump the library version to 0.9.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded xen_session_clear_error.
ewan@localhost.localdomain [Mon, 16 Apr 2007 23:19:07 +0000 (19:19 -0400)]
Added xen_session_clear_error.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoxenstored: Only dom0 can do XS_DEBUG in non-test environments.
kfraser@localhost.localdomain [Sat, 21 Apr 2007 10:37:34 +0000 (11:37 +0100)]
xenstored: Only dom0 can do XS_DEBUG in non-test environments.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoDeprecate XendDomainInfo.state - now use _stateGet() to get the live
Tom Wilkie [Fri, 20 Apr 2007 16:56:28 +0000 (17:56 +0100)]
Deprecate XendDomainInfo.state - now use _stateGet() to get the live
state of a domain.  Should still call _stateSet() to notify others
when you expect the state has changed.

Also some changes to locking in save/suspend, restore/resume and migrate

Passes xm-test against XenAPI...

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoRevert 14883:6568c1882af5 and 14862:98efd2e410ae.
kfraser@localhost.localdomain [Fri, 20 Apr 2007 16:51:10 +0000 (17:51 +0100)]
Revert 14883:6568c1882af5 and 14862:98efd2e410ae.

This reverts the preparation for removing the sparse tree, since these
modified scripts are not yet ready:
 1. XENGUEST suffix was lost yet depended on still by sparse tree
 Makefiles (hacked around by 14883; also reverted).
 2. XEN_TARGET_X86_PAE default value seems to be ignored
 (out-of-the-box 'make dist' will build non-PAE kernels).

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEND] Fix test for when to record HVM VNC console as a VFB.
Tim Deegan [Fri, 20 Apr 2007 16:32:30 +0000 (17:32 +0100)]
[XEND] Fix test for when to record HVM VNC console as a VFB.
This code may still need more work to properly integrate HVM SDL consoles.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoFix dist target to keep previous symlink format.
Steven Hand [Fri, 20 Apr 2007 14:29:11 +0000 (15:29 +0100)]
Fix dist target to keep previous symlink format.
May be a cleaner fix which I'll let IanC do.

Signed-off-by: Steven Hand <steven@xensource.com>
18 years agoUpdate README for correctness.
kfraser@localhost.localdomain [Fri, 20 Apr 2007 13:04:32 +0000 (14:04 +0100)]
Update README for correctness.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvmloader: Fix ROMBIOS highmem relocation. Only SHF_ALLOC sections
Keir Fraser [Thu, 19 Apr 2007 20:06:29 +0000 (21:06 +0100)]
hvmloader: Fix ROMBIOS highmem relocation. Only SHF_ALLOC sections
should be relocated. SHT_NOBITS must be handled properly (space
explicitly allocated and zeroed).
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAdd "chk build" check that we've got xgettext since it's now required.
Keir Fraser [Thu, 19 Apr 2007 18:32:10 +0000 (19:32 +0100)]
Add "chk build" check that we've got xgettext since it's now required.
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
18 years ago[vtpm] Return a proper error when in the Xen-API call.
Keir Fraser [Thu, 19 Apr 2007 18:29:45 +0000 (19:29 +0100)]
[vtpm] Return a proper error when in the Xen-API call.
Fix a bug in the test.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years ago[security] When building the binary policy align its contents the same way as the
Keir Fraser [Thu, 19 Apr 2007 18:29:19 +0000 (19:29 +0100)]
[security] When building the binary policy align its contents the same way as the
ACM module does when returning its contents.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agohvmloader: Simplify e820_malloc() interface and improve
Keir Fraser [Thu, 19 Apr 2007 18:22:12 +0000 (19:22 +0100)]
hvmloader: Simplify e820_malloc() interface and improve
implementation. Strip unnecessary sections from the highmem bios
extension elf image.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvmloader: Tiny comment clarification.
Keir Fraser [Thu, 19 Apr 2007 17:13:09 +0000 (18:13 +0100)]
hvmloader: Tiny comment clarification.

18 years agoFix for bug introduced by cset 14859:a9aa7c29eda8 - implement IOREQ_TYPE_SUB
Steven Hand [Tue, 17 Apr 2007 14:41:44 +0000 (15:41 +0100)]
Fix for bug introduced by cset 14859:a9aa7c29eda8 - implement IOREQ_TYPE_SUB
for intercepted mmio access too.

Signed-off-by: Steven Hand <steven@xensource.com>
18 years agoAllow use of foo.local buildconfig overrides.
kfraser@localhost.localdomain [Tue, 17 Apr 2007 12:22:24 +0000 (13:22 +0100)]
Allow use of foo.local buildconfig overrides.
From: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agonetfront: use skb.cb for storing private data
kfraser@localhost.localdomain [Tue, 17 Apr 2007 12:21:22 +0000 (13:21 +0100)]
netfront: use skb.cb for storing private data

Netfront's use of nh.raw and h.raw for storing page+offset is a bit
hinky, and it breaks with upcoming network stack updates which reduce
these fields to sub-pointer sizes.  Fortunately, skb offers the "cb"
field specifically for stashing this kind of info, so use it.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Chris Wright <chrisw@sous-sol.org>
Cc: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
18 years agotools: Use INSTALL_{DIR,DATA} to install stuff.
kfraser@localhost.localdomain [Tue, 17 Apr 2007 11:21:33 +0000 (12:21 +0100)]
tools: Use INSTALL_{DIR,DATA} to install stuff.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoFix tools build
James Bulpin [Tue, 17 Apr 2007 11:01:00 +0000 (12:01 +0100)]
Fix tools build

Signed-off-by: James Bulpin <james@xensource.com>
18 years agoAdd *.get_all_records to XenAPI, make use of this for xm list
Tom Wilkie [Mon, 16 Apr 2007 21:58:12 +0000 (22:58 +0100)]
Add *.get_all_records to XenAPI, make use of this for xm list

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoAdded event dispatch when a VM's power state changes. Fix the host.enabled and
ewan@localhost.localdomain [Mon, 16 Apr 2007 21:02:52 +0000 (17:02 -0400)]
Added event dispatch when a VM's power state changes.  Fix the host.enabled and
host.software_version definitions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdd pot file, fix build
Tom Wilkie [Mon, 16 Apr 2007 20:21:42 +0000 (21:21 +0100)]
Add pot file, fix build

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoAdded documentation and C bindings for VM.migrate call.
ewan@localhost.localdomain [Mon, 16 Apr 2007 20:12:33 +0000 (16:12 -0400)]
Added documentation and C bindings for VM.migrate call.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded host.enabled flag.
ewan@localhost.localdomain [Mon, 16 Apr 2007 20:10:39 +0000 (16:10 -0400)]
Added host.enabled flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoInstall dtd into correct place
Tom Wilkie [Fri, 13 Apr 2007 15:54:03 +0000 (16:54 +0100)]
Install dtd into correct place

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoFix up locale strings for xm
Tom Wilkie [Fri, 13 Apr 2007 15:46:41 +0000 (16:46 +0100)]
Fix up locale strings for xm

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
18 years agohvm: Fix get_immediate() in mmio decoder by reverting Dexuan Cui's
kfraser@localhost.localdomain [Mon, 16 Apr 2007 16:47:37 +0000 (17:47 +0100)]
hvm: Fix get_immediate() in mmio decoder by reverting Dexuan Cui's
change that breaks the case mod==0, rm==4, sib&7==5. That is,
disp32(scaled-index).
Also simplify get_immediate with sign extension.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoFactor out sparse tree makefile fragments and introduce an alternative hg-clone
Ian Campbell [Mon, 16 Apr 2007 16:38:37 +0000 (17:38 +0100)]
Factor out sparse tree makefile fragments and introduce an alternative hg-clone
method in preparation for migrating away from the sparse tree layout.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agohvm: Allow HVM guests to use sched_op() hcall on x86/64 Xen.
kfraser@localhost.localdomain [Mon, 16 Apr 2007 10:42:12 +0000 (11:42 +0100)]
hvm: Allow HVM guests to use sched_op() hcall on x86/64 Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen x86: Fix PV guest destruction.
kfraser@localhost.localdomain [Mon, 16 Apr 2007 10:36:40 +0000 (11:36 +0100)]
xen x86: Fix PV guest destruction.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
18 years agohvm: Fix a bug in the mmio emulation of SUB instruction.
kfraser@localhost.localdomain [Mon, 16 Apr 2007 10:35:58 +0000 (11:35 +0100)]
hvm: Fix a bug in the mmio emulation of SUB instruction.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
18 years agoFix map_pages_to_xen() to atomically switch between valid mappings.
kfraser@localhost.localdomain [Sun, 15 Apr 2007 20:56:38 +0000 (21:56 +0100)]
Fix map_pages_to_xen() to atomically switch between valid mappings.
This is needed to successfully boot a debug=y build of xen on kvm.
Reported by Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAdded documentation, C bindings, and test for VM_metrics.VCPUs_flags.
Ewan Mellor [Fri, 13 Apr 2007 17:14:06 +0000 (18:14 +0100)]
Added documentation, C bindings, and test for VM_metrics.VCPUs_flags.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded documentation and C bindings for VBD. and VIF.runtime_properties.
Ewan Mellor [Thu, 12 Apr 2007 21:49:02 +0000 (22:49 +0100)]
Added documentation and C bindings for VBD. and VIF.runtime_properties.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years ago[HVM][SVM] Save/restore: set CPL from SS.DPL on restore
Tim Deegan [Fri, 13 Apr 2007 16:17:21 +0000 (17:17 +0100)]
[HVM][SVM] Save/restore: set CPL from SS.DPL on restore
(not needed on VMX, which doesn't keep the CPL separately from SS.DPL)
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoMerge with xen-ia64-unstable.hg
Keir Fraser [Fri, 13 Apr 2007 15:07:48 +0000 (16:07 +0100)]
Merge with xen-ia64-unstable.hg

18 years agoFix TypeError with datetime() on old python version
Tom Wilkie [Fri, 13 Apr 2007 15:02:41 +0000 (16:02 +0100)]
Fix TypeError with datetime() on old python version

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years ago[IA64] Fix ptc.ga emulation
Alex Williamson [Fri, 13 Apr 2007 14:33:21 +0000 (08:33 -0600)]
[IA64] Fix ptc.ga emulation

ptc.ga infrequently clobbers the region register 0.

When vcpu1 purges TLBs of vcpu2 and ptc_ga_remote_func() is called
locally not via IPI (i.e. vcpu1 shares the same pcpu with vcpu2),
in ptc_ga_remote_func(),

  save vrr[0] of vcpu2
  ... => switch to vcpu2 and set a new value of vrr[0]
  restore vrr[0] of vcpu2 // the new value is lost

Windows will crash due to this issue.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
18 years agolinux netfront: Fixes to locking after lockdep-derived changes, as
Keir Fraser [Fri, 13 Apr 2007 14:24:42 +0000 (15:24 +0100)]
linux netfront: Fixes to locking after lockdep-derived changes, as
suggested by Herbert Xu.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm: Clean up treatment of is_dying per-domain boolean. All critical
Keir Fraser [Fri, 13 Apr 2007 13:59:06 +0000 (14:59 +0100)]
hvm: Clean up treatment of is_dying per-domain boolean. All critical
checks are done under an appropriate lock, allowing the lock-free
protocols surrounding this boolean to be removed.

Also simplification and fixes to code for setting/zapping the ioreq
and buf_ioreq shared pages.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAdd VM.migrate to XenAPI, add support to XM
Tom Wilkie [Fri, 13 Apr 2007 12:55:10 +0000 (13:55 +0100)]
Add VM.migrate to XenAPI, add support to XM

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agohvm: Fix some bugs in mmio decoder
kfraser@localhost.localdomain [Fri, 13 Apr 2007 11:30:04 +0000 (12:30 +0100)]
hvm: Fix some bugs in mmio decoder

Some instructions, like "add $imm8, r/m16"/"MOV $imm32, r/m64" require
the src immediate operand be sign-extented befere the op is executed,
but this is omitted in the current Xcode. The patch fixes this.
The patch also fixes an issue in handling address-size override
prefix, and fixes an issue in get_immediate().

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
18 years agohvm: Xen must take care to hold a reference to ioreq pages, to ensure
kfraser@localhost.localdomain [Fri, 13 Apr 2007 11:29:06 +0000 (12:29 +0100)]
hvm: Xen must take care to hold a reference to ioreq pages, to ensure
that domain runs only when it has valid mapped ioreq pages, and to
safely drop ioreq page references when a domain dies.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoUpdate .hgignore so it doesn't ignore buildconfigs/* only build-*
Ian Campbell [Fri, 13 Apr 2007 11:01:37 +0000 (12:01 +0100)]
Update .hgignore so it doesn't ignore buildconfigs/* only build-*

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoSimplify code to map interfaces to bridges
Tom Wilkie [Fri, 13 Apr 2007 10:43:50 +0000 (11:43 +0100)]
Simplify code to map interfaces to bridges

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agolinux: netfront contains two locking problems found by lockdep:
kfraser@localhost.localdomain [Fri, 13 Apr 2007 10:28:04 +0000 (11:28 +0100)]
linux: netfront contains two locking problems found by lockdep:

1. rx_lock is a normal spinlock, and tx_lock is an irq spinlock.  This
   means that in normal use, tx_lock may be taken by an interrupt
   routine while rx_lock is held.  However, netif_disconnect_backend
   takes them in the order tx_lock->rx_lock, which could lead to a
   deadlock. Reverse them.
2. rx_lock can also be used in softirq context, so it should be
   taken/released with spin_(un)lock_bh.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
18 years agopygriub: Fix GPT support.
kfraser@localhost.localdomain [Fri, 13 Apr 2007 10:23:26 +0000 (11:23 +0100)]
pygriub: Fix GPT support.
- 64 bit support for starting of a GPT partition.
- detect partition types precisely.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
18 years agohvm svm: Fix nested paging to support domain save/restore.
kfraser@localhost.localdomain [Fri, 13 Apr 2007 10:20:11 +0000 (11:20 +0100)]
hvm svm: Fix nested paging to support domain save/restore.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
18 years agoMerge with xenppc-unstable-merge.hg
kfraser@localhost.localdomain [Fri, 13 Apr 2007 10:14:26 +0000 (11:14 +0100)]
Merge with xenppc-unstable-merge.hg

18 years agoMerge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Fri, 13 Apr 2007 10:11:41 +0000 (11:11 +0100)]
Merge with xen-ia64-unstable.hg

18 years agolibxenguest: Remove bogus weak definitions of xc_{set,get}_hvm_param().
kfraser@localhost.localdomain [Fri, 13 Apr 2007 10:09:58 +0000 (11:09 +0100)]
libxenguest: Remove bogus weak definitions of xc_{set,get}_hvm_param().
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN][POWERPC] Fix dom0 boot when using built-in zImage.
Hollis Blanchard [Thu, 12 Apr 2007 21:37:32 +0000 (16:37 -0500)]
[XEN][POWERPC] Fix dom0 boot when using built-in zImage.
We need to respect the ELF entry point.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[XEN][POWERPC] Fix debug=y build.
Hollis Blanchard [Thu, 12 Apr 2007 18:05:04 +0000 (13:05 -0500)]
[XEN][POWERPC] Fix debug=y build.
When debug=y, we use -O0 for single-stepping. This breaks the force-link-error
trick used in __xchg(), so we provide a real function to link with.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years agomerge with xen-unstable.hg
Alex Williamson [Thu, 12 Apr 2007 16:30:12 +0000 (10:30 -0600)]
merge with xen-unstable.hg

18 years ago[IA64] Fix hyper_get_psr
Alex Williamson [Thu, 12 Apr 2007 16:26:42 +0000 (10:26 -0600)]
[IA64] Fix hyper_get_psr

It didn't return correct psr.i value.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years ago[IA64] Formatting fix
Alex Williamson [Thu, 12 Apr 2007 16:24:53 +0000 (10:24 -0600)]
[IA64] Formatting fix

This extra space after the newline causes printk to get confused
and re-evaluate do_print and leave start_of_line == 0.  Anything
printed after this will always print, regardless of intended
log level.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years ago[XEN][POWERPC] Fix garbage dom0 commandline.
Hollis Blanchard [Thu, 12 Apr 2007 15:42:43 +0000 (10:42 -0500)]
[XEN][POWERPC] Fix garbage dom0 commandline.
Debugged by Amos Waterland <apw@us.ibm.com>.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[XEN][POWERPC] Fix xchg macro.
Hollis Blanchard [Thu, 12 Apr 2007 15:27:05 +0000 (10:27 -0500)]
[XEN][POWERPC] Fix xchg macro.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years agoMerge
Tim Deegan [Thu, 12 Apr 2007 14:55:24 +0000 (15:55 +0100)]
Merge

18 years ago[HVM] Save/restore: catch more error cases in the tools
Tim Deegan [Thu, 12 Apr 2007 14:54:59 +0000 (15:54 +0100)]
[HVM] Save/restore: catch more error cases in the tools
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoAdd PyXML requirement for xm via XenAPI to docs
Tom Wilkie [Thu, 12 Apr 2007 14:44:02 +0000 (15:44 +0100)]
Add PyXML requirement for xm via XenAPI to docs

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years ago[HVM] Fix typo that broke x86_64 build
Tim Deegan [Thu, 12 Apr 2007 14:07:20 +0000 (15:07 +0100)]
[HVM] Fix typo that broke x86_64 build
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] Save/restore: save HVM GPRs and DRs with the rest of the CPU state
Tim Deegan [Thu, 12 Apr 2007 14:02:03 +0000 (15:02 +0100)]
[HVM] Save/restore: save HVM GPRs and DRs with the rest of the CPU state
and remove the use of xc_vcpu_getcontext() from HVM save/restore.
Also fixes loss of CR2, DR6 and DR7 contents across HVM save/restore.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoHVM: First attempt at domain-resume on save-failure.
kfraser@localhost.localdomain [Thu, 12 Apr 2007 13:13:04 +0000 (14:13 +0100)]
HVM: First attempt at domain-resume on save-failure.

Not working yet as we are a bit too keen to kill the qemu-dm process,
before we know that the save has been successful.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoHVM: Allow qemu monitor to be configured in domain config file.
kfraser@localhost.localdomain [Thu, 12 Apr 2007 12:21:26 +0000 (13:21 +0100)]
HVM: Allow qemu monitor to be configured in domain config file.
From: Yongkang You <yongkang.you@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxend: Update config-format version, due to changes in 3.0.5.
kfraser@localhost.localdomain [Thu, 12 Apr 2007 12:18:08 +0000 (13:18 +0100)]
xend: Update config-format version, due to changes in 3.0.5.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
18 years agoEnsure xenapi create passes in values even if unused
Tom Wilkie [Thu, 12 Apr 2007 11:48:27 +0000 (12:48 +0100)]
Ensure xenapi create passes in values even if unused

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoHVM: Do not watch control/shutdown to force domain shutdowns when PV
kfraser@localhost.localdomain [Thu, 12 Apr 2007 11:12:56 +0000 (12:12 +0100)]
HVM: Do not watch control/shutdown to force domain shutdowns when PV
drivers are not present. The feature-foo mechanism does not actually
work after save/restore since the fields do not get rewritten. And it
doesn't work when we actually need the guest to be shutdown through
Xen (e.g., on suspend). Since we can quite reasonably assume that the
only entity to screw with control/shutdown is xend, and since the one
place that does that now explicitly handles unenlightened HVM guests,
we can simply strip all this stuff out.

This has the nice benefit of making HVM save/restore with PV drivers
much more reliable.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoPV-on-HVM: More carefully synchronise with APs when putting them to
kfraser@localhost.localdomain [Thu, 12 Apr 2007 11:09:58 +0000 (12:09 +0100)]
PV-on-HVM: More carefully synchronise with APs when putting them to
sleep in a spin loop.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoMake xm info more permissive
Tom Wilkie [Thu, 12 Apr 2007 10:44:26 +0000 (11:44 +0100)]
Make xm info more permissive

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoMake Xm Test default to bridge when cannot read config file
Tom Wilkie [Thu, 12 Apr 2007 10:32:25 +0000 (11:32 +0100)]
Make Xm Test default to bridge when cannot read config file

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoFix typo and make create send proper bools
Tom Wilkie [Thu, 12 Apr 2007 10:31:17 +0000 (11:31 +0100)]
Fix typo and make create send proper bools

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoPV-on-HVM: Fix 64-bit build.
kfraser@localhost.localdomain [Thu, 12 Apr 2007 07:02:38 +0000 (08:02 +0100)]
PV-on-HVM: Fix 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[IA64] Fix PV-on-HVM driver
Alex Williamson [Thu, 12 Apr 2007 05:15:30 +0000 (23:15 -0600)]
[IA64] Fix PV-on-HVM driver

xen-platform-pci fails to load w/ undefined symbols for some of the
sched_op hypercalls in machine_reboot.c.  This adds them to xencomm
mini to allow them to be called from modules.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years ago[IA64] Bugzilla 942 Fix (timer strangeness on restored PV domain)
Alex Williamson [Thu, 12 Apr 2007 04:46:10 +0000 (22:46 -0600)]
[IA64] Bugzilla 942 Fix (timer strangeness on restored PV domain)

Time interpolator remembers last status.  When domain is restored, it
should be forgotten. Otherwise the interpolator causes bad timer value.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years ago[ioemu] Consistently extend all block device operations to include scsi disks.
Christian Limpach [Wed, 11 Apr 2007 22:05:07 +0000 (23:05 +0100)]
[ioemu] Consistently extend all block device operations to include scsi disks.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[setup] Fix old style bridge setup.
Christian Limpach [Wed, 11 Apr 2007 18:04:10 +0000 (19:04 +0100)]
[setup] Fix old style bridge setup.
Also only warn that we ran out of veth interfaces if we have any at all.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoAdd documentation and C bindings for VM.add_to_VCPUs_params_live,
Ewan Mellor [Wed, 11 Apr 2007 21:24:30 +0000 (22:24 +0100)]
Add documentation and C bindings for VM.add_to_VCPUs_params_live,
VM.set_memory_dynamic_{min,max}_live.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded documentation and bindings for host_cpu.features.
Ewan Mellor [Wed, 11 Apr 2007 20:55:05 +0000 (21:55 +0100)]
Added documentation and bindings for host_cpu.features.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agolinux: Quieten blkfront output.
kfraser@localhost.localdomain [Wed, 11 Apr 2007 13:34:08 +0000 (14:34 +0100)]
linux: Quieten blkfront output.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxend: Store canonical vnif config info in /vm/<uuid>/device
kfraser@localhost.localdomain [Wed, 11 Apr 2007 13:30:56 +0000 (14:30 +0100)]
xend: Store canonical vnif config info in /vm/<uuid>/device
rather than in frontend store directory. Two advantages are that the
frontend cannot mess with the config information; also an
ioemu-specific vif does nto need a frontend directory at all. This
avoids confusing netfront pv-on-hvm driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agomerge with xen-unstable.hg
Alex Williamson [Wed, 11 Apr 2007 13:30:02 +0000 (07:30 -0600)]
merge with xen-unstable.hg

18 years ago[IA64] Skip MCA setup on domU
Alex Williamson [Wed, 11 Apr 2007 13:28:29 +0000 (07:28 -0600)]
[IA64] Skip MCA setup on domU

This effectively automates passing the nomca flag to domUs,
preventing them from setting up CMC/CPE interrupts.  This saves
3 dynamic IRQs per processor and allows us to get domUs up to 64
vCPUs without increasing the number of dynamic IRQs available.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years ago[IA64] Handle NAT bit for dom0 and domU
Alex Williamson [Wed, 11 Apr 2007 13:24:44 +0000 (07:24 -0600)]
[IA64] Handle NAT bit for dom0 and domU

This fixes ia32 apps running under the IA32-EL.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years agoPV-on-HVM: Fixes for module loading.
kfraser@localhost.localdomain [Wed, 11 Apr 2007 08:29:00 +0000 (09:29 +0100)]
PV-on-HVM: Fixes for module loading.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoPV-on-HVM: More save/restore fixes.
kfraser@localhost.localdomain [Wed, 11 Apr 2007 08:16:04 +0000 (09:16 +0100)]
PV-on-HVM: More save/restore fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Fix an error path in save/restore code.
kfraser@localhost.localdomain [Tue, 10 Apr 2007 19:00:45 +0000 (20:00 +0100)]
linux: Fix an error path in save/restore code.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TAPDISK] Fix qcow initialization bug.
Jake Wires [Tue, 10 Apr 2007 18:40:43 +0000 (11:40 -0700)]
[TAPDISK] Fix qcow initialization bug.

fd_end was being incorrectly initialized upon open, leading to data corruption.

Signed-off-by: Jake Wires <jwires@xensource.com>
19 years agoAdded docs and bindings for VM_metrics.state.
Ewan Mellor [Tue, 10 Apr 2007 18:04:37 +0000 (19:04 +0100)]
Added docs and bindings for VM_metrics.state.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years ago[linux] Make CONFIG_XEN_COMPAT #if statements syntactically correct.
Christian Limpach [Wed, 11 Apr 2007 17:39:05 +0000 (18:39 +0100)]
[linux] Make CONFIG_XEN_COMPAT #if statements syntactically correct.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoLINUX: Cleanup a few stray uses of CONFIG_XEN_COMPAT_030002.
Ian Campbell [Wed, 11 Apr 2007 15:08:35 +0000 (16:08 +0100)]
LINUX: Cleanup a few stray uses of CONFIG_XEN_COMPAT_030002.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoMerge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Wed, 11 Apr 2007 14:45:29 +0000 (15:45 +0100)]
Merge with xen-ia64-unstable.hg